Observer Pattern using Aspect-Oriented Programming
نویسندگان
چکیده
This paper discusses the representation and implementation of the Observer design pattern using aspect-oriented techniques.
منابع مشابه
Aspect Weaving: Using the Base Language's Introspective Facilities to Determine Join Points
Aspect-oriented programming languages provide their own join point description language or mechanism for specifying join points during the execution of a program where additional code needs to be executed. However, until now such join point description languages are far from being mature and do not even match those examples which are considered to be typical for aspect-oriented programming. Asp...
متن کاملTowards Reactive Programming for Object-Oriented Applications
Reactive applications are difficult to implement. Traditional solutions based on event systems and the Observer pattern have a number of inconveniences, but programmers bear them in return for the benefits of OO design. On the other hand, reactive approaches based on automatic updates of dependencies – like functional reactive programming and dataflow languages – provide undoubted advantages bu...
متن کاملFrom Aspect - Oriented Model to Implementation Watch Out for Impedance Mismatch
An important part of both comprehensibility and traceability is that the implementation resemble the design. As the design is refined to a concrete implementation, it is important that concepts have a clear correspondence to implementation artifacts – even if this mapping is not one-to-one. This holds true for crosscutting – or aspect-oriented – behaviors as well. We illustrate by investigating...
متن کاملUsing Aspect-Oriented Programming for Design Patterns Implementation
Object-oriented design patterns are useful for designing software programs or components, which are based on objects. Object-orientation has however some limitations that a more recent approach known as aspectorientation, or more generally as "advanced separation of concerns" try to eliminate. This paper presents and motivates the beginning of some work aiming to identify and gain from the bene...
متن کاملUnderstanding Exceptional Behavior and Exception Flow in Implicit Invocation Systems by Mehdi Bagherzadeh, Hridesh Rajan and Ali Darvish
Exceptions and their implicit control flow complicate modular understanding (reasoning) of both exceptional behavior and exception flow of a system. Such reasoning tasks about exceptions are more complicated in implicit invocation (II) systems, where a subject module can invoke other observer modules without knowing about them and especially behavior and flow of their exceptions. In this work, ...
متن کامل